@import "./common";
.banner {
  position: relative;
  width: 100%;
  height: 390px;
  .swiper-slide {
    background-size: cover;
    background-position: center 0;
    background-repeat: no-repeat;
  }
  .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    margin: 0 8px
  }
  .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
  }
}
header {
  .flex;
  position: relative;
  height: 60px;
  background-color: #ffffff;
  box-shadow: 0px 0px 32px 0px
  rgba(164, 174, 179, .19);
  .logo {
    width: 30%;
    margin-right: 30px;
    transform: translateY(26px);
  }
  .nav {
    flex: 1;
    .flex;
    & > a {
      margin: 0 10px;
      position: relative;
      .flex;
      padding: 0 24px;
      justify-content: center;
      height: 60px;
      color: #333333;
      transition: all .3s;
      &.nav-item:hover {.active};
      &.active {
        color: #1571f8;
        background: #f8faff;
        &::after {
          content: '';
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 4px;
          background: #0388f7;
        }
      }
    }

    .dropdown {
      position: relative;
      .flex;
      cursor: pointer;
      &:hover {
        .dropdown-menu {
          display: block;
        }
      }
      .avatar {
        width: 40px;
        height: 40px;
        background-color: #0388f7;
        border-radius: 20px;
      }
      .username {
        margin: 0 18px;
        color: #999999;
      }
    }
    .dropdown-menu {
      width: 150px;
      display: none;
      top: 90px;
      left: 0;
      padding: 13px 0;
      border-radius: 8px;
      position: absolute;
      z-index: 3;
      background: #fff;
      box-shadow: 0 0 20px rgba(0, 0, 0, .4);
      &::after {
        content: '';
        position: absolute;
        left: 50%;
        top: -26px;
        border-color: transparent;
        transform: translateX(-50%);
        border: 13px solid transparent;
        border-bottom-color: #fff;
      }
      &::before {
        content: '';
        width: 100%;
        position: absolute;
        left: 0;
        top: -50px;
        height: 50px;
      }
      a {
        position: relative;
        padding: 10px 19px;
        margin-right: 0;
        &:hover {
          background: rgb(245, 245, 245);
        }
        img {
          margin-right: 8px;
        }
        .flex(flex-start);
        justify-content: flex-start;
        font-size: 14px;
        color: #666666;
        .badge {
          .flex;
          padding: 0 6px;
          left: 80px;
          top: 0;
          position: absolute;
          height: 16px;
          background-color: #ff3b3b;
          border-radius: 8px;
          color: #fff;
          font-size: 14px;
          .font-medium;
          z-index: 2;
        }
      }
      .log-out {
        .flex;
        padding: 0;
        margin: 0 auto;
        margin-top: 10px;
        justify-content: center;
        width: 77px;
        height: 27px;
        background-color: #ffebeb;
        border-radius: 3px;
        font-size: 12px;
        color: #ff6666;
        &:hover {
          background: #ffebeb;
        }
      }
    }
    .login, .register {
      .flex;
      justify-content: center;
      width: 80px;
      height: 40px;
      background-color: #0388f7;
      border-radius: 4px;
      color: #fff;
      &.register {
        background: #fb9c21;
      }
    }
  }
}
.common-title {
  margin-bottom: 50px;
  position: relative;
  text-align: center;
  .en {
    margin-bottom: 24px;
    font-size: 66px;
    font-weight: bolder;
    color: #ff8a00;
    opacity: 0.16;
  }
  .cn {
    position: absolute;
    left: 50%;
    top: 30px;
    //background: #fff;
    padding: 0 5px;
    transform: translateX(-50%);
    font-size: 36px;
    color: #fb9c21;
  }
  .desc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 13px;
    height: 40px;
    background-color: #fb9c21;
    border-radius: 20px;
    font-size: 20px;
    color: #fff;
    img {
      width: 15px;
      position: absolute;
      right: 20px;
      bottom: -12px;
    }
  }
}
.news {
  margin-top: 90px;
}
.news-content {
  margin: 0 auto 90px;
  width: 1200px;
  .flex(flex-start);
  justify-content: space-between;
  .news-info {
    width: 500px;
    .news-swiper {
      margin-bottom: 43px;
      width: 100%;
      height: 260px;
      box-shadow: 0px 0px 13px 0px
      rgba(152, 157, 170, 0.3);
      border: solid 1px #e8ebf2;
      .swiper-slide {
        -webkit-background-size: cover;
        background-size: cover;
      }
    }
    .title {
      .text-overflow;
      margin-bottom: 10px;
      font-size: 24px;
      font-weight: 500;
    }
    .line {
      margin-bottom: 13px;
      height: 4px;
      width: 56px;
      background: #3079ce;
    }
    .desc {
      line-height: 36px;
      color: #666666;
      .text-overflow-break
    }
  }
  .news-list {
    margin-left: 50px;
    flex: 1;
    a {
      width: 640px;
      margin-bottom: 26px;
      cursor: pointer;
      &.active {
        .time {
          background: #0388f7;
          .date {
            color: #fff;
          }
          .month {
            color: #fff;
          }
        }
        .details {
          .title {
            color: #0388f7
          }
        }
      }
      .flex;
      .time {
        .flex;
        flex-direction: column;
        justify-content: center;
        width: 86px;
        height: 86px;
        background-color: #f8faff;
        color: #000;
        .date {
          margin-bottom: 4px;
          font-size: 30px;
          font-weight: bold;
        }
      }
      .details {
        margin-left: 35px;
        flex: 1;
        overflow: hidden;
        color: #666;
        .title {
          .text-overflow;
          margin-bottom: 20px;
          font-size: 20px;
          font-weight: 500;
        }
        .desc {
          .text-overflow;
        }
      }
    }
  }
}
.schedule {
  .common-title {
    .en {
      color: #0388f7;
    }
    .cn {
      color: #0388f7;
    }
    .desc {
      background: #3aa3fb;
    }
  }
}
.schedule-wrapper {
  padding: 130px 0 38px;
  background: url(../images/schedule-bg.png);
  -webkit-background-size: cover;
  background-position: center 0;
  background-size: cover;
  .schedule-content {
    width: 1200px;
    margin: 0 auto;
    .game-types {
      margin-bottom: 40px;
      .flex;
      justify-content: space-between;
      cursor: pointer;
      .game-type-item {
        .flex;
        justify-content: flex-start;
        flex-direction: column;
        padding: 0 18px;
        width: 278px;
        height: 330px;
        background: #fff;
        text-align: center;
        img {
          margin-top: 30px;
        }
        .title {
          margin: 20px 0;
          font-size: 20px;
        }
        .desc {
          line-height: 36px;
          color: #666;
        }
        &:hover {
          .active
        }
        &.active {
          background-image: linear-gradient(180deg,
          #10c3e9 0%,
          #3eaeff 100%),
          linear-gradient(
                  #007ffe,
                  #007ffe);
          background-blend-mode: normal,
          normal;
          box-shadow: 0px 0px 32px 0px
          rgba(48, 104, 206, 0.27);
          .title, .desc {
            color: #fff;
          }
        }
        &.sign {
          & > img {
            position: absolute;
            left: 0;
            top: 0;
            margin-top: 0;
            width: 100%;
          }
          position: relative;
          //img {
          //  margin-bottom: 0;
          //  margin-top: 40px;
          //}
          .bottom {
            .flex;
            flex-direction: column;
            justify-content: center;
            position: absolute;
            width: 100%;
            left: 0;
            bottom: 0;
            height: 163px;
            background-color: #ffffff;
            border-radius: 10px 10px 0px 0px;
            .title {
              margin-bottom: 20px;
              color: #000;
            }
            a {
              .flex;
              justify-content: center;
              width: 200px;
              height: 43px;
              background-image: linear-gradient(250deg,
              #f78b2e 0%,
              #ffbb5b 100%),
              linear-gradient(
                      #ffffff,
                      #ffffff);
              background-blend-mode: normal,
              normal;
              box-shadow: 0px 0px 13px 0px
              rgba(248, 143, 50, 0.4);
              border-radius: 22px;
              color: #fffefe;
              font-size: 20px;
              font-weight: 500;
            }
          }
        }
      }
    }
    .steps {
      .flex;
      justify-content: center;
      padding: 30px 0;
      margin-top: 40px;
      background: rgba(55, 184, 255, .83);
      & > img {
        margin: 0 80px
      }
      .step-item {
        text-align: center;
        .title {
          margin-top: 10px;
          margin-bottom: 12px;
          font-size: 22px;
          color: #ff8700;
          text-shadow: 0 0 2px #fff;
        }
        .time {
          text-align: center;
          font-size: 14px;
          line-height: 24px;
          color: #ffffff;
        }
      }
    }
  }
}
.game-area {
  padding-top: 30px;
  background: #f8faff;
  .area-list {
    width: 1200px;
    margin: 0 auto;
    .flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .area-item {
    position: relative;
    margin-bottom: 27px;
    margin-right: 30px;
    width: 216px;
    height: 110px;
    //overflow: hidden;
    cursor: pointer;
    &:hover {
      .info {
        transform: translateY(0);
        opacity: 1;
      }
    }
    .title {
      .flex;
      width: 100%;
      height: 100%;
      position: relative;
      background: url("../images/area-bg.png");
      font-size: 18px;
      font-weight: 500;
      //.line {
      //  height: 8px;
      //  background-image: linear-gradient(250deg,
      //  #13b8cc 1%,
      //  #007eff 100%),
      //  linear-gradient(
      //          #306ace,
      //          #306ace);
      //  background-blend-mode: normal,
      //  normal;
      //}
    }
    .info {
      width: 100%;
      position: absolute;
      top: 0;
      left: 0;
      transform: translateY(-30%);
      opacity: 0;
      background-color: #fb9c21;
      box-shadow: 0px 0px 13px 0px
      rgba(248, 143, 50, 0.4);
      background-image: url(../images/info-bg.png);
      background-position: right 0;
      background-repeat: no-repeat;
      transition: all .3s ease;
      .info-wrapper {
        padding: 10px;
      }
      .info-title {
        margin-bottom: 10px;
        padding-bottom: 14px;
        font-size: 22px;
        color: #ffffff;
        border-bottom: 1px solid rgba(255, 255,255, .36);
      }
      .company-item {
        margin-bottom: 10px;
        font-size: 14px;
        color: #fff;
        .name {
          margin-bottom: 10px;
        }
        .contact {
          .flex;
          justify-content: flex-start;
          img {
            margin-right: 10px;
          }
        }
      }
    }
    &:nth-of-type(5n) {
      margin-right: 0;
    }
  }
}
